package com.gqz.patrol.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gqz.common.core.domain.R;
import com.gqz.common.core.domain.RequestForm;
import com.gqz.patrol.vo.EnPatrolTaskPeriodVo;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;


/**
 * 能源-巡视工单_周期任务表
 */


@RequestMapping("/en-patrol-task-period")
public interface EnPatrolTaskPeriodApi {
    @PostMapping("/{id}")
    public R<List<EnPatrolTaskPeriodVo>> getById(
            @PathVariable("id") String id);

    @PostMapping("/page")
    public R<Page<EnPatrolTaskPeriodVo>> page(
            @RequestBody RequestForm<EnPatrolTaskPeriodVo> requestForm);

    @PostMapping("/count")
    public R<Long> count(
            @RequestBody RequestForm<EnPatrolTaskPeriodVo> requestForm);

    @PostMapping("/insert")
    public R<Integer> insert(
            @RequestBody List<EnPatrolTaskPeriodVo> forms);

    @PostMapping("/update")
    public R<Integer> update(
            @RequestBody List<EnPatrolTaskPeriodVo> forms);

    @PostMapping("/delete")
    public R<Boolean> delete(
            @RequestBody List<String> ids);


}
